package info.techgeek.labs.java5Features.thread.blcQueing;

public class WidgerFurmuzzit implements Comparable<WidgerFurmuzzit> {
	  private int cost;
	  public WidgerFurmuzzit(int newCost) {
	   cost = newCost;
	  }
	  public int compareTo(WidgerFurmuzzit f) {
	    Integer ourCost = getCost(); // box it up!
	    Integer otherCost = f.getCost();
	    
	    // flip the costs around so if ours is higher, it is 
	    // put at a lower ranking.
	    return otherCost.compareTo(ourCost);
	    
	  }
	  
	  public int getCost() {
	    return cost;
	  }
	}

